/*	PureMVC AS3 / Flex Demo - Slacker 
	Copyright (c) 2008 Clifford Hall <clifford.hall@puremvc.org>
	Your reuse is governed by the Creative Commons Attribution 3.0 License */
package mvc.controller
{
	import com.tools.traceTool.TraceTool;
	import mvc.view.ApplicationMediator;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class StartupCommand extends SimpleCommand
	{
		private	function Trace(...args):void{TraceTool.send('sTrace',String(Object(this).constructor),args);}
		override public function execute(note:INotification):void
		{
			Trace('		START	facade.registerMediator('+note.getBody()+')');
			facade.registerMediator(new ApplicationMediator(note.getBody() as ArtG));
			Trace('		FINISH	facade.registerMediator('+note.getBody()+')');
		}
	}
}